﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDDshop2.Controllers
{
    public class InfoController : Controller
    {
        //
        // GET: /Info/

        public ActionResult Info()
        {
            if (Session["userid"] == null)
            {
                return RedirectToAction("Login", "Login");
            }
            else
            {
                int userid = Convert.ToInt32(Session["userid"]);
                List<Book> books = BLL.Bll.select_shou(userid);
                ViewBag.books = books;
                return View();
            }
        }

    }
}
